﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="ReportViewer"
    targetNamespace="http://albatross.net/ReportViewer.xsd"
    elementFormDefault="qualified"
    xmlns="http://albatross.net/ReportViewer.xsd"
    xmlns:mstns="http://albatross.net/ReportViewer.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">

	<xs:complexType name="Parameter">
		<xs:attribute name="Name" type="xs:string" use="required"/>
		<xs:attribute name="Value" type="xs:string" />
	</xs:complexType>

	<xs:simpleType name="ReportType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="Report"/>
			<xs:enumeration value="LinkedReport"/>
		</xs:restriction>
	</xs:simpleType>
	
	<xs:complexType name="Report">
		<xs:sequence minOccurs="0" maxOccurs="unbounded">
			<xs:element name="Param" type="Parameter"/>
		</xs:sequence>
		<xs:attribute name="ServerName" type="xs:string" use="required"/>
		<xs:attribute name="Name" type="xs:string" use="required"/>
		<xs:attribute name="Description" type="xs:string"/>
		<xs:attribute name="Path" type="xs:string" use="required"/>
		<xs:attribute name="Type" type="ReportType" use="required"/>
		<xs:attribute name="ShowTree" type="xs:boolean" use="required"/>
		<xs:attribute name="Filter" type="xs:string"/>

		<xs:attribute name="ShowDataSource" type="xs:boolean" use="required"/>
		<xs:attribute name="ShowEmptyFolder" type="xs:boolean" use="required"/>
		<xs:attribute name="ShowOther" type="xs:boolean" use="required"/>
		<xs:attribute name="ShowReport" type="xs:boolean" use="required"/>
	</xs:complexType>

	<xs:element name="Report" type="Report" />
</xs:schema>
